package top.lingchen.blogapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Repository;
import top.lingchen.blogapi.bean.Article;
import top.lingchen.blogapi.vo.Archives;

import java.util.List;

/**
 * @Author 凌宸
 * @create 2021-12-15 下午 8:46
 * @Description
 * @Version 1.0
 */
@Repository
public interface ArticleMapper extends BaseMapper<Article> {
    /**
     * 文章归档
     */
    List<Archives> listArchives();

    IPage<Article> listArticle(Page<Article> page,
                               Long categoryId,
                               Long tagId,
                               String year,
                               String month);
}
